package com.msb.mall.order.feign;


import com.msb.common.utils.R;
import com.msb.mall.order.entity.vo.OrderItemSpuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/*
*FeignClient:指明从注册中心中发现的服务的名称
 */
@FeignClient(name="mall-product")
public interface ProductFeignService {
    /*
     *需要访问的远程方法
     */
    @GetMapping("/product/brand/all")
    public R queryBrand();

    @RequestMapping("/product/spuinfo/getOrderItemSpuBySpuId/{spuIds}")
    List<OrderItemSpuInfoVo> getOrderItemSpuBySpuId(@PathVariable("spuIds") Long[] spuIds);


}
